Conditions | 2 |
Total Lines | 9 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import { |
||
26 | |||
27 | @Get('cooperative') |
||
28 | @Roles(UserRole.COOPERATOR, UserRole.EMPLOYEE) |
||
29 | @ApiOperation({ summary: 'Get cooperative settings' }) |
||
30 | public async index(): Promise<CooperativeView> { |
||
31 | try { |
||
32 | return await this.queryBus.execute(new GetCooperativeQuery()); |
||
33 | } catch (e) { |
||
34 | throw new NotFoundException(e.message); |
||
35 | } |
||
38 |